package com.starryx.driverschool.service;

import com.starryx.driverschool.po.Account;
import com.starryx.driverschool.vo.AccountQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface AccountService {

    // 分页查询所有用户
    Page<Account> listAccount(Pageable pageable);

    // 分页查询所有用户
    Page<Account> listAccount(Pageable pageable, AccountQuery accountQuery);

    // 保存
    Account saveAccount(Account account);

    // 根据 id 查询
    Account getAccount(Long id);

    // 根据 id 删除
    void deleteAccount(Long id);
}
